//
//  SRMacros.h
//  SportRing
//
//  Created by mykoma on 14-4-1.
//  Copyright (c) 2014年 HotOne. All rights reserved.
//

#ifndef SportRing_SRMacros_h
#define SportRing_SRMacros_h


#define SHARED_INSTANCE \
+(instancetype)sharedInstance; \

#define SHARED_INSTANCE_IMPLEMENT(CLASS) \
+(instancetype)sharedInstance \
{ \
    static CLASS * instance = nil; \
    static dispatch_once_t onceToken; \
    dispatch_once(&onceToken, ^{ \
        instance = [CLASS new]; \
    }); \
    return instance; \
} \


#define UI_DEBUG_SHOW_BORDER(view) \
{ \
view.layer.borderWidth = 2.0f; \
view.layer.borderColor = [UIColor redColor].CGColor; \
} \

#define WHITE_TEXT_COLOR_HEX "#ffffff"
#define LIGHT_GRAY_TEXT_COLOR_HEX "#cacaca"
#define GREEN_TEXT_COLOR_HEX "#18b55a"

#endif
